package com.huatai.bi.dto;

import com.huatai.bi.utils.FilterComponent.Node;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author : xuzy
 */
@Data
public class PolymericDto implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "ID")
	private Long id;

	@ApiModelProperty(value = "数据集ID", required = true)
	@NotNull(message = "数据集ID不能为空")
	private Long dtId;

	@ApiModelProperty(value = "指标名称", required = true)
	@NotBlank(message = "指标名称不能为空")
	private String name;

	//@ApiModelProperty(value = "指标描述", required = true)
	//private String description;

	//@ApiModelProperty(value = "新增列名", required = true)
	//private String columnName;

	//@ApiModelProperty(value = "新增列描述", required = true)
	//private String columnDescription;

	@ApiModelProperty(value = "公式", required = true)
	@NotBlank(message = "公式不能为空")
	private String expresse;

	@ApiModelProperty(value = "过滤条件")
	private Node node;

	@ApiModelProperty(value = "计算字段")
	private String chooseColumn;
}
